module TopicsHelper
  def topic_type(topic)
    if !topic.question_list.nil?
      :question_list
    elsif !topic.question.nil?
      :question
    else
      :topic
    end
  end

  def create_remark(topic)
    r = Remark.new
    r.topic = topic
    r
  end
end
